class ProjectType < ActiveRecord::Base
  file_column :base_file, :fix_file_extensions => false

  # active_scaffold callbacks: authorized_for_crud
  def authorized_for_create?
    true
  end

  def authorized_for_read?
    true
  end

  def authorized_for_update?
    true
  end

  def authorized_for_destroy?
    true
  end

  # human names
  ModelName = "项目类型"
  ColumnNames ={
    :name => "名称",
    :base_file => "基础文件",
    :lead_pages => "标题页数"
  }
end
